cad8ca1889e7fb068034c91197b38e7cc8d841d2,enterprise/security/src/test/java/org/neo4j/server/security/enterprise/auth/integration/bolt/EnterpriseAuthenticationTestBase.java,EnterpriseAuthenticationTestBase,assertAuthFail,#String#String#,240
Before Change
protected void assertAuthFail( String username, String password ) throws Exception
{
client.connect( address )
.send( TransportTestUtil.acceptedVersions( 1, 0, 0, 0 ) )
.send( TransportTestUtil.chunk(
init( "TestClient/1.1", map( "principal", username,
"credentials", password, "scheme", "basic" ) ) ) );
assertThat( client, eventuallyReceives( new byte[]{0, 0, 0, 1} ) );
assertThat( client, eventuallyReceives( msgFailure( Status.Security.Unauthorized,
After Change
protected void assertAuthFail( String username, String password ) throws Exception
{
assertConnectionFails( map( "principal", username, "credentials", password, "scheme", "basic" ) );
}
protected void assertConnectionSucceeds( Map<String,Object> authToken ) throws Exception